package VaLen;

public class Hello {
	private int hour;
	private int minute;
	private int second;
	public void setTime(int h, int m, int s)
	{
		hour = ((h>=0&&h<24)?12:0);
		minute = ((m>=0&&h<24)?12:0);
		hour = ((s>=0&&s<24)?12:0);
	}
	public String toAM()
	{
		return String.format("%02d:%02d:%02d", hour, minute, second);
	}
}
